<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

 

<html>

  <head>

    <title>A Simple Test Page</title>

    <script language="JavaScript" src="../jsunit/app/jsUnitCore.js"></script>

    <script language="JavaScript">

        function addTwoNumbers(value1, value2) {

            return value1 + value2;

        }

 

        function testValidArgs() {

            assertEquals("2 + 2 is 4", 4, addTwoNumbers(2, 2));

        }

 

        function testWithNegativeNumbers() {

            assertEquals("negative numbers: -2 + -2 is -4", -4, 

addTwoNumbers(-2, -2));

        }

    </script>

  </head>

  <body>

    This is a simple test page for addTwoNumbers(value1, value2).

  </body>

</html>
